const routes = [
    //一级路由
    //"首页，爆爆团，订单，我的"页面路由
    {
        path: '/chushi',
        name: 'chushi',
        component: () => import('../views/chushi.vue'),
        children: [
            {
                path: '/chushi/liebiao',
                name: 'liebiao',
                meta: { title: '首页' },
                component: () => import('../views/chushi/liebiao.vue'),
            },
            {
                path: '/chushi/Hear',
                name: 'Hear',
                meta: { title: '爆爆团' },
                component: () => import('../views/chushi/Hear.vue'),
            },
            {
                path: '/chushi/dingdan',
                name: 'dingdan',
                meta: { title: '订单' },
                component: () => import('../views/chushi/dingdan.vue'),
            },
            {
                path: '/chushi/my',
                name: 'my',
                meta: { title: '我的' },
                component: () => import('../views/chushi/my.vue'),
            },
            {
                path: '/chushi',
                redirect: '/chushi/liebiao',
            },
        ],
    },
    {
        path: '/',
        redirect: '/chushi',
    },
    //地址访问错误时跳转到此地址
    {
        path: '/:error(.*)', // * 表示匹配任何路由(所有路由)
        component: () => import('../views/lujingcuowu.vue')
    }
]
export default routes;